<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
	<script src="lib/react.development.js"></script>
	<script src="lib/react-dom.development.js"></script>
	<script src="lib/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="text/babel">
	// zhangpeiyue
	// 有一个数字1，将该数字进行一个呈现。
	const root = ReactDOM.createRoot(document.querySelector("#root"));
	let num = 1;
	// 定义了一个名字为App的组件
	class App extends React.Component{
		render(){
			return (
				<h3 onClick={()=>{
					num++;
					root.render(<App/>)
				}}>{num}</h3>
			)
		}
	};
	root.render(<App/>)
</script>
</html>